<?php 
session_start();
include 'inc/connect_db.php';
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Eshop - Shop for everyone</title>
<link href="style/style.css" rel="stylesheet" type="text/css" />

</head>

<body>
<div id="page">
 <div id="myModal" class="reveal-modal" data-animation="fade"  style="width:250px">
			     <h1>Đăng ký</h1>
			     <div class="errorMessageRegister" style="color:red "></div>
			     	<form name="frRegister" id="frRegister">
			     		<table width="100%">
			     			<tr>
			     				<td>Username :</td><td><input type="text" id="rg_username" name = "rg_username" /></td>
			     			</tr>
			     			<tr>
			     				<td>Email :</td><td><input type="text" id="rg_email" name = "rg_email" /></td>
			     			</tr>
			     			<tr>
			     				<td>Password :</td><td><input type="password" id="rg_password" name = "rg_password" /></td>
			     			</tr>
			     			<tr>
			     				<td>Repeat password :</td><td><input type="password" id="rg_repeat_password" name = "rg_repeat_password" /></td>
			     			</tr>
			     			<tr>
			     				<td colspan="2"><input type="button" id="rg_register" name = "rg_register" value="Đăng ký"  onclick="doRegister();"/></td>
			     			</tr>
			     		</table>
			     	</form>
			     <a class="close-reveal-modal">&#215;</a>
</div>
<div id="header">
	<div class="logo"><img src="style/images/key_logo.png" width="200" /></div>
    <div class="right">
    	<div class="top">
        	<ul>
            	<li><a href="">Giới thiệu</a></li>
            	<li><a href="">Tuyển dụng</a></li>
            	<li><a href="">Hỏi đáp</a></li>
            	<li><a href="#" data-reveal-id="myModal">Đăng ký</a></li>
            </ul>
           
        </div>
        <div style="float:left; width:600px; padding-top:10px;">
        <div id="formsearch">
        <form>
        <input type="text" class="inputsearch" />
        <input type="submit" class="smsearch" value=""/>
        </form>
        </div>
        <div style="float:left; width:72px; height:25px;"><img src="style/images/nangcao.jpg" /></div>
        <div style="float:left; padding-left:50px"><img src="style/images/giohang.jpg" /></div>
        <div style="float:left; padding-left:10px; padding-top:5px; font-size:12px; font-weight:bold">
        	Giỏ hàng: (<span id="p_num"><?php if(isset($_SESSION["cart"])){
        											echo count($_SESSION["cart"]); 
        										}else{echo 0;}
        								?></span> <a href = "showCart.php" >sản phẩm</a>)
        </div>
        </div>
        
    </div>
<div style="clear:both"></div>
</div>